package com.tang.sys.controller;

import com.tang.sys.ResponseResult;
import com.tang.sys.service.ILinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 友链 前端控制器
 * </p>
 *
 * @author shankaka
 * @since 2023-04-14
 */
@RestController
@RequestMapping("/link")
public class LinkController {
    @Autowired
    private ILinkService iLinkService;

    @GetMapping("/getAllLink")
    public ResponseResult getAllLink(){

        return iLinkService.getAllLink();
    }
}
